﻿<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link href="users.css" rel="stylesheet" type="text/css" />
    <script src="jquery-1.7.1.min.js" type="text/javascript"></script>
    <link href="easyui.css" rel="stylesheet" type="text/css" />
    <script src="json2.js" type="text/javascript"></script>
    <script src="jquery.easyui.min.js" type="text/javascript"></script>
    <script src="easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script src="cf.js" type="text/javascript"></script>


    <title>目录维护 </title>	
	<script type="text/javascript">
	
        $(document).ready(function () {
/**
bug列表：
1: 字段定义的排序问题   OK
2: 不能隐藏字段
3: checkbox和radio不支持 textarea drawFn();   OK  日期控件等
4： formvalidate 支持  OK
每个字段的样式   OK
字段的单独一行显示  ok

**/
			var sexList=[{"id":"1","text":"男"},{"id":"2","text":"女"},{"id":"3","text":"afds"},{"id":"4","text":"sdfds"}];
			var formOpinions={};
			formOpinions.formFieldsOpinions=[
			{"title":"姓名","field":"show_name","isNewLine":false,"formValidate":{required: true,validType: 'notEmpty'},"formType":"text"},			
			{"title":"性别","field":"name","formhidden":true,"isNewLine":false,"formType":"radio","formValidate":"","formDefault":"","formList":sexList,"cssOpinion":""},
			{"title":"电子邮件","field":"name1","formhidden":true,"isNewLine":false,"formType":"text","formValidate":{required: true,validType: 'email'},"formDefault":"","formList":"","css":""},
			{"title":"eeeee","field":"name2","formhidden":true,"isNewLine":false,"formType":"text","formValidate":"","formDefault":"","formList":"","cssOpinion":""},
			{"title":"喜欢的运动","field":"show_name1","isNewLine":false,"formType":"checkbox","formList":sexList},
			{"title":"fffff","field":"show_name2","isNewLine":false,"formType":"text"},
			{"title":"ggggg","field":"name3","formhidden":false,"isNewLine":false,"formType":"text","formValidate":"","formDefault":"","formList":"","cssOpinion":""},
			{"title":"部门","field":"show_name3","isNewLine":false,"formType":"combox","formList":sexList,"cssOpinion":{"width":"200px"}},
			{"title":"iiiii","field":"show_name4","isNewLine":false,"formType":"text"},
			{"title":"出生日期","field":"name4","formhidden":false,"isNewLine":true,"formType":"datebox","formValidate":"","formDefault":"","formList":"","cssOpinion":{"width":"200px"}},
			{"title":"备注","field":"remark","isNewLine":true,"formType":"textarea","cssOpinion":{"width":"630px"},"opinion":{"rows":"5"}}];
			formOpinions.formLineNum=2;
			formOpinions.labelCSS={"width":"200px","background-color":"#FABFFF"};
			formOpinions.inputCSS={"width":"200px"};
			cf.initOfJson(formOpinions);
			cf.formInitHandler();
        });		
	</script>
	   
</head>
<body>


</body>
</html>
